import http from './core/http'
import type { AxiosRequestConfig } from 'axios'

// 示例
export const getTest = (options?: AxiosRequestConfig,) => {
  return http({
    method: 'GET',
    url: `/genericjson?msgid=${'CSTestMsg.req'}&uid=${1}`,
    ...options,
  })
}

export const postTest = (obj: { msgid: string; uid: number }, options?: AxiosRequestConfig) => {
  return http({
    method: 'POST',
    url: `/genericjson?msgid=${obj.msgid}&uid=${obj.uid}`,
    ...options,
  })
}
